package Test.rbTree;

import java.util.Scanner;


public class TestRBTree {

    public static void main(String[] args) {

        RBTree<String, Object> tree = new RBTree<>();

        Scanner scanner = new Scanner(System.in);

        while (true) {
            System.out.println("请输入红黑树的key:");
            String key = scanner.next();
            System.out.println();
            tree.insert(key, null);
            TreeOperation.show(tree.getRoot());
        }

    }
}